/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.amazon.s3;

import java.net.InetAddress;

/**
 *
 * @author Ahmed Salem
 */
public class test {

    public static void main(String[] args) {
        try{
      String computername=InetAddress.getLocalHost().getHostName();
      System.out.println(computername);
    }catch (Exception e){
      System.out.println("Exception caught ="+e.getMessage());
    }
    }
}
